import { AxiosPromise } from 'axios'
// @ts-ignore
import request from '/@/utils/request'

const prefix = '/api/dms/staff/'

// 业务统计
export const getOrderGroupTotal: () => AxiosPromise = () =>
  request(`${prefix}getOrderGroupTotal` )

// 单品销售排行榜
export const getOrderDetailRank: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}getOrderDetailRank`, { data })

// 客户订单量分析
export const getOrderLineChart: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}getOrderLineChart`, { data })


// 获取系统公告
export const getArticleList: (data: object) => AxiosPromise = (data) =>
  request('/api/article/list', { data })

